package com.example.demontest.controller;

import com.example.apple_starter.service.AppleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AppleController {
    @Autowired
    AppleService appleService;

    @GetMapping("/")
    public String getString(){
        return appleService.toString();
    }
}
